<template>
  <div>
    <h1>{{index}}.Mycounter:{{ count }}</h1>
    <button @click="add">每次加十</button>
  </div>
</template>

<script>
export default {
 name:'Mycounter',
 props: ["index"],
 data(){
   return{
     count:100
   }
 },
 methods: {
   add(){
     this.count+=10
   }
 }
}
</script>

<style>

</style>